// 获取cookie的方法
export function getCookie () {
  return document.cookie
}
// 获取token的方法
export function token () {
  return localStorage.token;
}
//获取地址栏的参数的方法
export function getParams () {

}
/*验证pad还是pc*/
export const vaildatePc = function () {
  const userAgentInfo = navigator.userAgent;
  const Agents = ["Android", "iPhone",
    "SymbianOS", "Windows Phone",
    "iPad", "iPod"
  ];
  let flag = true;
  for (var v = 0; v < Agents.length; v++) {
    if (userAgentInfo.indexOf(Agents[v]) > 0) {
      flag = false;
      break;
    }
  }
  return flag;
}
